//
//  CZUtil.m
//  Loohoo
//
//  Created by 陈镇 on 2024/11/4.
//

#import "CZUtil.h"

@implementation CZUtil
+ (void)copyStringToPasteborad:(NSString *)str {
    if (str.length == 0) {
        return;
    }
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string = str;
//    SLAppdelegateObj.myCopyUrl = str;
}


+(void)deleteAllVC:(NSString *)vcClassName{
    
    NSMutableArray <UIViewController *>*childViewControllers = [NSMutableArray array];
    for (UIViewController *vc in CurrentVC.navigationController.viewControllers) {
        if (![vc isKindOfClass: NSClassFromString(vcClassName)]) {
            [childViewControllers addObject:vc];
        }
    }
    CurrentVC.navigationController.viewControllers = childViewControllers;
    
    
    
    
}

+(void)showTipsWithContentView:(UIView *)contentView{
    
    

}
@end
